package com.genius.util.Lua;

import org.springframework.core.io.ClassPathResource;
import org.springframework.data.redis.core.script.DefaultRedisScript;

public class codeVerifyLua {
    public static final DefaultRedisScript<Boolean> VERIFY_CODE_SCRIPT;
    static {
        VERIFY_CODE_SCRIPT = new DefaultRedisScript<>();
        VERIFY_CODE_SCRIPT.setLocation(new ClassPathResource("/Lua/verifyCode.lua"));
        VERIFY_CODE_SCRIPT.setResultType(Boolean.class);
    }
}
